package com.hotel.service;

import com.hotel.bean.User;
import com.hotel.exception.SteduException;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {
    //添加
    boolean insert(User user) throws SteduException;
    //修改
    boolean update(User user) throws SteduException;
    //根据uid删除
    boolean updateUstate(Integer uid) throws SteduException;
    //根据uid查询
    User selectByUid(Integer uid);
    //查询所有(根据姓名查询)
    List<User> selectAll(String uname);
    //导出excel
    void exportExcel(HttpServletResponse response);
}
